Optimal. Leaf size=122 \[ -\frac{6 \sin (c+d x) \cos ^3(c+d x)}{a^2 d (e \cos (c+d x))^{7/2}}+\frac{4 i \cos ^2(c+d x)}{d \left (a^2+i a^2 \tan (c+d x)\right ) (e \cos (c+d x))^{7/2}}+\frac{6 \cos ^{\frac{7}{2}}(c+d x) E\left (\left .\frac{1}{2} (c+d x)\right |2\right )}{a^2 d (e \cos (c+d x))^{7/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.171009, antiderivative size = 122, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 5, integrand size = 28, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.179, Rules used = {3515, 3500, 3768, 3771, 2639} \[ -\frac{6 \sin (c+d x) \cos ^3(c+d x)}{a^2 d (e \cos (c+d x))^{7/2}}+\frac{4 i \cos ^2(c+d x)}{d \left (a^2+i a^2 \tan (c+d x)\right ) (e \cos (c+d x))^{7/2}}+\frac{6 \cos ^{\frac{7}{2}}(c+d x) E\left (\left .\frac{1}{2} (c+d x)\right |2\right )}{a^2 d (e \cos (c+d x))^{7/2}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3515
Rule 3500
Rule 3768
Rule 3771
Rule 2639
Rubi steps
\begin{align*} \int \frac{1}{(e \cos (c+d x))^{7/2} (a+i a \tan (c+d x))^2} \, dx &=\frac{\int \frac{(e \sec (c+d x))^{7/2}}{(a+i a \tan (c+d x))^2} \, dx}{(e \cos (c+d x))^{7/2} (e \sec (c+d x))^{7/2}}\\ &=\frac{4 i \cos ^2(c+d x)}{d (e \cos (c+d x))^{7/2} \left (a^2+i a^2 \tan (c+d x)\right )}-\frac{\left (3 e^2\right ) \int (e \sec (c+d x))^{3/2} \, dx}{a^2 (e \cos (c+d x))^{7/2} (e \sec (c+d x))^{7/2}}\\ &=-\frac{6 \cos ^3(c+d x) \sin (c+d x)}{a^2 d (e \cos (c+d x))^{7/2}}+\frac{4 i \cos ^2(c+d x)}{d (e \cos (c+d x))^{7/2} \left (a^2+i a^2 \tan (c+d x)\right )}+\frac{\left (3 e^4\right ) \int \frac{1}{\sqrt{e \sec (c+d x)}} \, dx}{a^2 (e \cos (c+d x))^{7/2} (e \sec (c+d x))^{7/2}}\\ &=-\frac{6 \cos ^3(c+d x) \sin (c+d x)}{a^2 d (e \cos (c+d x))^{7/2}}+\frac{4 i \cos ^2(c+d x)}{d (e \cos (c+d x))^{7/2} \left (a^2+i a^2 \tan (c+d x)\right )}+\frac{\left (3 \cos ^{\frac{7}{2}}(c+d x)\right ) \int \sqrt{\cos (c+d x)} \, dx}{a^2 (e \cos (c+d x))^{7/2}}\\ &=\frac{6 \cos ^{\frac{7}{2}}(c+d x) E\left (\left .\frac{1}{2} (c+d x)\right |2\right )}{a^2 d (e \cos (c+d x))^{7/2}}-\frac{6 \cos ^3(c+d x) \sin (c+d x)}{a^2 d (e \cos (c+d x))^{7/2}}+\frac{4 i \cos ^2(c+d x)}{d (e \cos (c+d x))^{7/2} \left (a^2+i a^2 \tan (c+d x)\right )}\\ \end{align*}
Mathematica [B] time = 0.984883, size = 255, normalized size = 2.09 \[ \frac{-2 \sin (c+d x)+10 i \cos (c+d x)-6 i (\cos (c+d x)-i \sin (c+d x)) \sqrt{\sin (c+d x)-i \cos (c+d x)+1} \sqrt{\sin (c+d x)+i \sin (2 (c+d x))-i \cos (c+d x)+\cos (2 (c+d x))} F\left (\left .\sin ^{-1}\left (\sqrt{\sin (c+d x)-i \cos (c+d x)}\right )\right |-1\right )+6 \sqrt{\sin (c+d x)-i \cos (c+d x)+1} (\sin (c+d x)+i \cos (c+d x)) \sqrt{\sin (c+d x)+i \sin (2 (c+d x))-i \cos (c+d x)+\cos (2 (c+d x))} E\left (\left .\sin ^{-1}\left (\sqrt{\sin (c+d x)-i \cos (c+d x)}\right )\right |-1\right )}{a^2 d e^3 \sqrt{e \cos (c+d x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 1.97, size = 135, normalized size = 1.1 \begin{align*} -2\,{\frac{4\,i \left ( \sin \left ( 1/2\,dx+c/2 \right ) \right ) ^{3}-3\,{\it EllipticE} \left ( \cos \left ( 1/2\,dx+c/2 \right ) ,\sqrt{2} \right ) \sqrt{2\, \left ( \sin \left ( 1/2\,dx+c/2 \right ) \right ) ^{2}-1}\sqrt{ \left ( \sin \left ( 1/2\,dx+c/2 \right ) \right ) ^{2}}+2\, \left ( \sin \left ( 1/2\,dx+c/2 \right ) \right ) ^{2}\cos \left ( 1/2\,dx+c/2 \right ) -2\,i\sin \left ( 1/2\,dx+c/2 \right ) }{{e}^{3}{a}^{2}\sin \left ( 1/2\,dx+c/2 \right ) \sqrt{-2\, \left ( \sin \left ( 1/2\,dx+c/2 \right ) \right ) ^{2}e+e}d}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: RuntimeError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*} \frac{\sqrt{\frac{1}{2}} \sqrt{e e^{\left (2 i \, d x + 2 i \, c\right )} + e}{\left (12 i \, e^{\left (2 i \, d x + 2 i \, c\right )} + 8 i\right )} e^{\left (-\frac{1}{2} i \, d x - \frac{1}{2} i \, c\right )} +{\left (a^{2} d e^{4} e^{\left (2 i \, d x + 2 i \, c\right )} + a^{2} d e^{4}\right )}{\rm integral}\left (-\frac{6 i \, \sqrt{\frac{1}{2}} \sqrt{e e^{\left (2 i \, d x + 2 i \, c\right )} + e} e^{\left (\frac{1}{2} i \, d x + \frac{1}{2} i \, c\right )}}{a^{2} d e^{4} e^{\left (2 i \, d x + 2 i \, c\right )} + a^{2} d e^{4}}, x\right )}{a^{2} d e^{4} e^{\left (2 i \, d x + 2 i \, c\right )} + a^{2} d e^{4}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: AttributeError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{1}{\left (e \cos \left (d x + c\right )\right )^{\frac{7}{2}}{\left (i \, a \tan \left (d x + c\right ) + a\right )}^{2}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]